-- GENERATED SPELL FOR [High Marshal Whirlaxis] --


function spell0_15204(pUnit, Event) --@Lightning Breath,n/a--
pUnit:FullCastSpellOnTarget(20627,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15204', 2000, 1)
end

function spell1_15204(pUnit, Event) --@Lightning Shield,n/a--
pUnit:FullCastSpellOnTarget(25020,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15204', 0, 1)
end

function spell2_15204(pUnit, Event) --@Updraft,Self--
pUnit:FullCastSpellOnTarget(25060,pUnit)
pUnit:RegisterEvent('Sorts_15204', 582, 1)
end

function Sorts_15204(pUnit, Event)
local choix_sorts_15204 = math.random(0, 2)
if choix_sorts_15204 == 0 then
pUnit:RegisterEvent('spell0_15204', 1, 1)
end
if choix_sorts_15204 == 1 then
pUnit:RegisterEvent('spell1_15204', 1, 1)
end
if choix_sorts_15204 == 2 then
pUnit:RegisterEvent('spell2_15204', 1, 1)
end
end

function mob15204_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15204', math.random(1500, 3000), 1)
end

function mob15204_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15204_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15204_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15204, 1, 'mob15204_Action')
RegisterUnitEvent(15204, 2, 'mob15204_Leave')
RegisterUnitEvent(15204, 3, 'mob15204_Kill')
RegisterUnitEvent(15204, 4, 'mob15204_Die')
